package com.lizemin.builderfactorycase.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.datetime.standard.DateTimeFormatterFactoryBean;

/**
 * @author lzm
 * @date 2025/10/19 22:07
 * @description
 */
@Configuration
public class FactoryBeanConfig {

    @Bean
    public DateTimeFormatterFactoryBean dateTimeFormatterFactoryBean() {
        DateTimeFormatterFactoryBean dateTimeFormatterFactoryBean = new DateTimeFormatterFactoryBean();
        dateTimeFormatterFactoryBean.setPattern("yyyy-MM-dd HH:mm:ss");
        return dateTimeFormatterFactoryBean;
    }

}
